import { createRouter, createWebHistory } from 'vue-router'
import type { RouteRecordRaw } from 'vue-router'

const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    redirect: '/chat'
  },
  {
    path: '/chat',
    name: 'chat',
    component: () => import('../views/ChatView.vue')
  },
  {
    path: '/universal-config',
    name: 'universal-config',
    component: () => import('../views/UniversalConfigView.vue')
  },
  {
    path: '/agent-management',
    name: 'agent-management',
    component: () => import('../views/AgentManagementView.vue')
  },
  {
    path: '/mcp-agent-directory',
    name: 'mcp-agent-directory',
    component: () => import('../views/MCPAgentDirectoryView.vue')
  }
]

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes
})

export default router 